﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_music : LoginBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        BindData();
    }

    public void BindData()
    {
        BLL.Music bll = new BLL.Music();
        string sql = string.Format("  UserID={0} and IsPass=1", base.User.ID);
        Model.PageData<Model.Music> data = bll.GetList(base.PageSize, base.PageIndex, sql, " AddTime desc ");
        Repeater1.DataSource = data.DataSoure;
        Repeater1.DataBind();
        pgServer.RecordCount = data.Count;
        //pgServer.EnableUrlRewriting = true;
        //string url = string.Format("list-{0}-{1}-{2}.html", base.TypeID, base.ColorID, base.Language);
        //pgServer.UrlRewritePattern = url + "?page={0}";
        pgServer.DataBind();
    }
}